//
//  MarbleMachine.m
//  CiscoProject
//
//  Created by Stefano Pilla on 15/10/10.
//  Copyright 2010 Will Servizi Informatici. All rights reserved.
//

#import "MarbleMachine.h"


@implementation MarbleMachine

@synthesize num1, num2, num4, num8, num16, num32, result;

	

NSArray *numbs = [[NSArray alloc] initWithFrame];
[numbs addObject:num1];
[numbs addObject:num2];
[numbs addObject:num4];
[numbs addObject:num8];
[numbs addObject:num16];
[numbs addObject:num32];

int i;
- (IBAction)getValue{
	
	


}


- (IBAction)Add{
	int tot=0;
	//Dichiaro una variabile generale che mi permette di aggiornare la somma e prenderà il valore in base al bottone premuto
	int value = 
	
	}
	int z = x + y;

			 NSString *StrResult = [NSString stringWithFormat:@"%d",z];
			 [result setText:(StrResult)];
}


- (id)initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
        // Initialization code
    }
    return self;
}

			 - (BOOL)TextFieldShouldReturn:(UITextField *)TextField{
				 [TextField resignFirstResponder];
				 
				 return YES;
			 }
			 

- (void)drawRect:(CGRect)rect {
	
 }


- (void)dealloc {
	[num1 dealloc];
	[num2 dealloc];
	[num4 dealloc];
	[num8 dealloc];
	[num16 dealloc];
	[num32 dealloc];
	[result dealloc];
    [super dealloc];
}


@end
